
var jumlib = {};
var a = {};
Components.utils.import("resource://mozmill/modules/jum.js", jumlib);

var testFoo1 = function () {
    for (var i = 0; i<10; i++){
        jumlib.assertEquals("0"+i, doublenumber(i), "comment");
    }
}

var testFoo2 = function () {
    for (var i = 10; i<100; i++){
        jumlib.assertEquals(""+i, doublenumber(i), "comment2");
    }
}

var testFoo3 = function () {
    for (var i = 0; i<10; i++){
        jumlib.assertNotEquals("0"+i, doublenumber(10), "10 nem egyenlo 0"+i);
    }
}
function doublenumber(nr){
	if (nr<10){
		return("0"+nr);
	}
	return(""+nr);
}